package com.qd.p2p.baofoo;

/**
 * 请求服务策略
 * 
 * <p>
 * 定义请求域名和URL以及请求的交易类型和交易子类型
 * 
 * requestTestDomain -- 定义测试环境的域名，因为接口的测试域名相同
 * reqeustUrl -- 定义请求的URL后缀地址
 * txnType -- 定义请求的交易类型
 * txnSubType -- 定义请求的交易子类型
 * </p>
 * 
 * @author linya
 */
public enum ServiceStrategy {

	BINDING_ACCOUNT_BY_PAGE("绑定宝付账户(页面接口)", "custody/bindState.do"),

	BINDING_ACCOUNT_BY_SERVER("绑定宝付账户(服务端接口)", "custody/quickRegister.do"),

	SEND_BINDCODE_BY_SERVER("发送绑定宝付账号验证码(服务端接口）", "custody/sendBindCode.do"),

	SEND_BINDCODEBYID_BY_SERVER("发送绑定银行卡验证码（服务端接口）", "custody/sendBindCodeById.do"),

	// IN_ACCREDIT_BY_SERVER("授权协议（页面接口）", "custody/inAccredit.do"),

	//（四）授权协议（页面接口）
	LICENSE_AGREEMENT("授权协议(页面接口)", "custody/inAccredit.do"),
	
	// 4.5商户会员托管账户余额查询
	QUERY_BALANCE("商户会员托管账户余额查询", "custody/accountBalance.do"),

	// 4.6商户会员托管账户余额总额查询
	QUERY_TOTAL_BALANCE("商户会员托管账户余额总额查询", "custody/accountAllBalance.do"),

	// （七）充值（页面接口）
	RECHARGE_PAGE("充值(页面接口)", "custody/recharge.do"),
	
	RECHARGE_CER("认证支付(页面接口)", "custody/cerPayRecharge.do"),
	
	// （八）SDK充值(服务端接口)
	RECHARGE("SDK充值(服务端接口)", "custody/cerPayRechargeSdk.do"),

	// （十）提现 (服务端接口)
	WITHDRAW("提现 (服务端接口)", "custody/foChargeNew.do"),
	
	// 4.14单笔转账 (服务端接口)
	TRANSFER("单笔转账 (服务端接口)", "custody/acctTrans.do"),
	
	// 4.15批量转账 (服务端接口)
	BATCH_TRANSFER("批量转账 (服务端接口)", "custody/acctBatchTrans.do"),

	P2P_REQUEST("投标、满标、流标、还款接口", "custody/p2pRequest.do"),

	// 4.22业务查询接口（服务端接口）
	QUERY_P2P_BUSINESS("业务查询接口（服务端接口）", "custody/p2pQuery.do"),

	// 4.23查询EXCEL导出
	EXPORT_P2P_BUSINESS_TO_EXCEL("查询EXCEL导出", "custody/queryExport.do"),

	// 4.18 个人用户银行卡绑定
	BINDING_BANK_CARD("个人用户银行卡绑定（个人用户）", "custody/addBankCard.do"),
	
	// 4.19  个人用户银行卡删卡
	UNBINDING_BANK_CARD("个人用户银行卡删卡（个人用户）", "custody/delBankCard.do"),
	
	BINDING_BANK_CARD_FOR_ENTERPRISE("企业用户银行卡绑定（企业用户）", "custody/opBankCard.do"),
	
	// 4.24  获取会员银行卡信息（个人用户）
	GET_BANK_CARD_LIST("获取会员银行卡信息（个人用户）", "custody/queryMerBankCard.do"),

	GET_BANK_CARD_LIST_FOR_ENTERPRISE("获取会员银行卡信息（企业用户）", "custody/queryEntBankCard.do"),
	
	// 获取资金托管商户认证书（页面）
	CREDIT_PAGE("获取资金托管商户认证书（页面）", "custody/credit.do")

	;
	/**
	 * 功能名称
	 */
	private String name;

	/**
	 * 请求URL
	 */
	private String requestUrl;

	ServiceStrategy(String name, String requestUrl) {
		this.name = name;
		this.requestUrl = requestUrl;
	}

	public String getName() {
		return name;
	}

	public String getRequestUrl() {
		return requestUrl;
	}
}
